<?php
$menu = $this->uri->segment(2,0);
if($menu=="0"){$menu="dash";}
//echo $menu;
$col = "bgcolor='#e8e8e8'"; 
$red = "bgcolor='#0054ff'";
?>
<table width="0" border="0" cellspacing="0" cellpadding="0" class="font-color-gray">
  <tr>
    <td width="10%">&nbsp;</td>
    <td width="3%" class="bg-default"></td>
    <td width="94%">
     <table id="lpanel" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr height="27">
        <td <?php if($menu=="home"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>"><div class="home<?php if($menu=="home"){echo "-active";}?> cur-pointer bold <?php if($menu=="home"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Home</div></a>
        </td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="dash"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>sas"><div class="dash<?php if($menu=="dash"){echo "-active";}?> cur-pointer bold <?php if($menu=="dash"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Dashboard</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="member" || $menu=="member_add" || $menu=="member_edit"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>sas/myaccount">
        <div class="member<?php if($menu=="member" || $menu=="member_add" || $menu=="member_edit"){echo "-active";}?> cur-pointer bold <?php if($menu=="member" || $menu=="member_add" || $menu=="member_edit"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>My Account</div></a></td>
      </tr>
      <tr height="27">
        <td <?php if($menu=="quiz" || $menu=="openquiz" || $menu=="openimages"){echo $red;}else{echo $col;}?>>&nbsp;</td>
        <td><a href="<?php echo base_url()?>sas/quiz"><div class="quiz<?php if($menu=="quiz" || $menu=="openquiz" || $menu=="openimages"){echo "-active";}?> cur-pointer bold <?php if($menu=="quiz" || $menu=="openquiz" || $menu=="openimages"){echo 'font-color-default';}?>"><span class="margin">&nbsp;</span>Quiz</div></a></td>
      </tr>
    </table>
   </td>
  </tr>
</table>